﻿using System.Runtime.Serialization;

namespace Needle.Bus.Messages.Management
{
    [DataContract]
    public class TraceMessage : IMessage
    {

        public TraceMessage Create(string source, string destination, long timestamp, IMessage message)
        {
            return new TraceMessage
            {
                Source = source,
                Message = message,
                Timestamp = timestamp,
                Destination = destination
            };
        }

        [DataMember]
        public string Source { get; set; }
        [DataMember]
        public long Timestamp { get; set; }
        [DataMember]
        public IMessage Message { get; set; }
        [DataMember]
        public string Destination { get; set; }

    }
}
